package com.jichangxiu.system.entity.dto.query;

import com.jichangxiu.common.entity.dto.QueryEntity;
import com.jichangxiu.system.entity.bo.SysPowerBo;
import com.jichangxiu.system.entity.po.SysPower;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * QuerySysPower:
 *
 * @author JiChangXiu
 * @create 2024-06-28 13:44:36
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Schema(description = "系统权限表")
@AutoMappers({
        @AutoMapper(target = SysPower.class, reverseConvertGenerate = false),
        @AutoMapper(target = SysPowerBo.class, reverseConvertGenerate = false)
})
public class QuerySysPower extends QueryEntity {

    /**
     * ID
     */
    @Schema(description = "ID")
    private String id;

    /**
     * 权限标识
     */
    @Schema(description = "权限标识")
    private String code;

    /**
     * 请求地址
     */
    @Schema(description = "请求地址")
    private String action;

    /**
     * 菜单ID
     */
    @Schema(description = "菜单ID")
    private String menuId;

    /**
     * 排序
     */
    @Schema(description = "排序")
    private BigDecimal sort;

    /**
     * 是否扩展
     */
    @Schema(description = "是否扩展")
    private Boolean isExtend;

}